package com.ruoyi.system.domain;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 投票对象 sys_vote
 * 
 * @author ruoyi
 * @date 2023-10-30
 */
public class SysVote extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 投票主键 */
    private String voteKey;

    /** 作品主键 */
    @Excel(name = "作品主键")
    private String worksKey;

    /** 作品名称 */
    @Excel(name = "作品名称")
    private String worksTitle;

    /** 投票人ID */
    @Excel(name = "投票人ID")
    private Long voteUserId;

    /** 投票人昵称 */
    @Excel(name = "投票人昵称")
    private String voteUserName;

    /** 投票人所在IP */
    @Excel(name = "投票人所在IP")
    private String loginIp;

    /** 删除标志（0代表存在 1代表删除） */
    private String delFlag;

    public void setVoteKey(String voteKey) 
    {
        this.voteKey = voteKey;
    }

    public String getVoteKey() 
    {
        return voteKey;
    }
    public void setWorksKey(String worksKey) 
    {
        this.worksKey = worksKey;
    }

    public String getWorksKey() 
    {
        return worksKey;
    }
    public void setWorksTitle(String worksTitle) 
    {
        this.worksTitle = worksTitle;
    }

    public String getWorksTitle() 
    {
        return worksTitle;
    }
    public void setVoteUserId(Long voteUserId) 
    {
        this.voteUserId = voteUserId;
    }

    public Long getVoteUserId() 
    {
        return voteUserId;
    }
    public void setVoteUserName(String voteUserName) 
    {
        this.voteUserName = voteUserName;
    }

    public String getVoteUserName() 
    {
        return voteUserName;
    }
    public void setLoginIp(String loginIp) 
    {
        this.loginIp = loginIp;
    }

    public String getLoginIp() 
    {
        return loginIp;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("voteKey", getVoteKey())
            .append("worksKey", getWorksKey())
            .append("worksTitle", getWorksTitle())
            .append("voteUserId", getVoteUserId())
            .append("voteUserName", getVoteUserName())
            .append("loginIp", getLoginIp())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("delFlag", getDelFlag())
            .append("remark", getRemark())
            .toString();
    }
}
